package com.cskaoyan.bean.admin.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 类<code>Doc</code>用于：TODO
 *
 * @author Acher
 * @version 1.0
 * @date 2021-10-21
 */
@NoArgsConstructor
@Data
public class PermissionsVo {

    private List<SystemPermissionsDTO> systemPermissions;
    private List<String> assignedPermissions;

    @NoArgsConstructor
    @Data
    public static class SystemPermissionsDTO {
        private String id;
        private String label;
        private List<ChildrenDTO> children;

        @NoArgsConstructor
        @Data
        public static class ChildrenDTO {
            private String id;
            private String label;
            private List<InnerChildrenDTO> children;

            @NoArgsConstructor
            @Data
            public static class InnerChildrenDTO {
                private String id;
                private String label;
                private String api;
            }
        }
    }
}
